package westeel.dataserver.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Security {
    @Value("${admin.password:1123581321}")
    private String adminPassword;

    /**
     * 密码是否合法
     * @param password
     * @return
     */
    public boolean checkIsAdmin(String password) {
        return adminPassword.equals(password);
    }
}
